package com.molichuxing.services.infrastructure.dao;

import com.molichuxing.services.infrastructure.bean.GroupDesenseBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface GroupDesenseMapper {
    /**
     *
     * @mbg.generated
     */
    int insert(GroupDesenseBean record);

    /**
     *
     * @mbg.generated
     */
    int insertSelective(GroupDesenseBean record);

    /**
     *
     * @mbg.generated
     */
    GroupDesenseBean selectByPrimaryKey(Integer id);

    /**
     *
     * @mbg.generated
     */
    int updateByPrimaryKeySelective(GroupDesenseBean record);

    /**
     *
     * @mbg.generated
     */
    int updateByPrimaryKey(GroupDesenseBean record);

    public List<GroupDesenseBean> getGroupDesenseListByParam(@Param("param") Map<String, Object> param);

    /**
     * 批量添加数据
     * @param groupId
     * @param desenseIds
     * @return
     */
    int createBatchGroupDesense(@Param("groupId") int groupId, @Param("desenseIds") List<Integer> desenseIds);

    int deleteByGroupId(@Param("groupId") int groupId);

    int deleteByDesenseId(@Param("desenseId") int desenseId);
}